<?php

/* EclipseBB:Includes:Classes::DBMySQLi (db_mysqli.class.php)
 *
 * This file creates the database class using the MySQL
 * Improved protocol.
 *
 * (C) 2009 EclipseBB Group
*/

	class db {
		
		function __construct() {
			$MySQLi = @new MySQLi();
		}
		
		public function connect($u, $p, $h, $n) {
			mysqli_connect($h, $u, $p, $n);
			if ($MySQLi->connect_error) {
				$this->connect_error();
			}
		}
		
		public function connect_error() {
			die('Connect Error: ' . $MySQLi->connect_error);
		}
		
		public function query($s) {
			global $dbc;
			mysqli_query($dbc, $s);
		}
		
	}
	
?>